import pytest
from autoTest_brtcApi_3.utils.mysqlUtil import mydb


@pytest.fixture(scope='session',autouse=True)
def fixture():
    # 环境预置
    print("开始执行接口自动化测试用例....")
    yield
    print("用例执行完成，恢复环境。。。")
    # 执行sql: delete from UserName WHERE u_phone= "1887498866";
    sql = 'delete from UserName WHERE u_phone= "1887498866";'
    mydb.execute_sql(sql)
